<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<button v-on:click="counter++">数值: {{counter}}</button>
			<button v-on:click="greet">Greet</button>
		</div>
	</body>
	<script type="text/javascript">
		var vm = new Vue({
			el: "#app",
			data: {
				counter: 0,
				name: 'vue'
			},
			methods: {
				greet: function() {
					alert('hi ' + this.name);
				}
			}
		});
	</script>
</html>
